
import Layout from '@/layout'

export default {
  path: '/system',
  component: Layout,
  name: 'system',
  meta: { title: '系统设置', icon: 'el-icon-setting' },
  children: [
    { path: '/system_menu',
      component: () => import ('@/views/system/menu'),
      name: 'sys_menu',
      meta: { title: '菜单管理', icon: 'el-icon-setting' }
    },
    {
      path: '/system_role',
      component: () => import ('@/views/system/role'),
      name: 'sys_role',
      meta: {
        title: '角色管理',
        icon: 'el-icon-place'
      }
    },
    {
      path: '/system_config',
      component: () => import ('@/views/system/config'),
      name: 'sys_config',
      meta: {
        title: '系统配置',
        icon: 'el-icon-place'
      }
    },
    {
      path: '/system_user',
      component: () => import ('@/views/system/user'),
      name: 'sys_user',
      meta: {
        title: '用户管理',
        icon: 'el-icon-place'
      }
    },
    {
      path: '/system_dict',
      component: () => import ('@/views/system/dict'),
      hidden: true,
      name: 'sys_dict',
      meta: {
        title: '字典管理',
        icon: 'el-icon-place'
      }
    },
    {
      path: '/sys_generator',
      component: () => import ('@/views/system/generator'),
      hidden: true,
      name: 'sys_generator',
      meta: {
        title: '代码生成器',
        icon: 'el-icon-place'
      }
    }
  ]
}
